package com.itheima.Demo4;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

public class Test {
    public static void main(String[] args) throws ExecutionException, InterruptedException {
        Mytest mytest = new Mytest();
        Thread thread = new Thread(mytest,"女生");
        Thread thread2 = new Thread(mytest,"备胎");
        thread2.setDaemon(true);
        thread.start();
        thread2.start();
    }
}
